Solve graph and interval notation